﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpPTCLib
{
    interface IVideoDriver
    {
        /// <summary>
        /// Opens the video driver and returns a pointer to the window created.
        /// </summary>
        /// <param name="caption">Window title</param>
        /// <param name="width">Width</param>
        /// <param name="height">Height</param>
        /// <param name="zoom">Software scaling</param>
        /// <param name="fullscreen">Fullscreen</param>
        /// <returns></returns>
        bool Open(string caption, int width, int height, int zoom, bool fullscreen);

        /// <summary>
        /// Flips and yields processor time
        /// </summary>
        /// <param name="pixel">Buffer containing pixels to draw</param>
        /// <returns>If the return-value is false then the window is lost and your app should exit</returns>
        bool Update(int[] pixel);

        /// <summary>
        /// Closes the video driver
        /// </summary>
        void Close();
    }
}
